package com.jili.scy.modules.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: Jili
 * @date: Created on 2022/4/8 16:40
 */
@Data
@ApiModel(description = "")
@TableName("dm_scy")
public class Scy extends Model<Scy> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("raw_content")
    private String rawContent;
    @TableField("is_viewed")
    private Integer isViewed;
    @TableField("date_add")
    private String dateAdd;
    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    @TableField("device_sn")
    private String deviceSn;
    /**
     * PH值
     */
    @ApiModelProperty(value = "PH值")
    @TableField("ph")
    private String ph;
    /**
     * 化学需氧量CODcr
     */
    @ApiModelProperty(value = "化学需氧量CODcr")
    @TableField("codcr")
    private String codcr;
    /**
     * 氨氮NH3-N
     */
    @ApiModelProperty(value = "氨氮NH3-N")
    @TableField("nh3n")
    private String nh3n;
    /**
     * 总磷TP
     */
    @ApiModelProperty(value = "总磷TP")
    @TableField("tp")
    private String tp;

    @ApiModelProperty(value = "悬浮物SS")
    @TableField("ss")
    private String ss;
    /**
     * 总氮TN
     */
    @ApiModelProperty(value = "总氮TN")
    @TableField("tn")
    private String tn;

    @ApiModelProperty(value = "生化需氧BOD5")
    @TableField("bod5")
    private String bod5;

    @ApiModelProperty(value = "瞬时流量")
    @TableField("yield_instant")
    private String yieldInstant;

    @ApiModelProperty(value = "累计流量")
    @TableField("yield_total")
    private String yieldTotal;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Scy{" +
                "dateAdd='" + dateAdd + '\'' +
                ", deviceSn='" + deviceSn + '\'' +
                ", ph='" + ph + '\'' +
                ", codcr='" + codcr + '\'' +
                ", nh3n='" + nh3n + '\'' +
                ", tp='" + tp + '\'' +
                ", ss='" + ss + '\'' +
                ", tn='" + tn + '\'' +
                ", bod5='" + bod5 + '\'' +
                ", yieldInstant='" + yieldInstant + '\'' +
                ", yieldTotal='" + yieldTotal + '\'' +
                '}';
    }
}
